 
HiddenDangerMeasureForm = Ext.extend(Ext.Window,
{
    constructor : function(a) {
        Ext.applyIf(this, a);
        this.initUIComponents();
        HiddenDangerMeasureForm .superclass.constructor.call(this, {
            layout : "fit",
            id : this.inputFormName,
            items : yearGridFormPanel,
            modal : true,
            bodyStyle : "padding:2px;",
            buttonAlign : "center",
            buttons : yearGridFormButtons,
            title : "整改信息",
            iconCls : "menu-flowWait",
            width : 620,
            height : 450
        });
    },
    //初始化数据
    initUIComponents : function() {
        createyeargridform({
            operation:this,
            form:{
                saveUrl: __ctxPath+"/safecheckplan/saveHiddenDanger.do",
                items:[
                {
                    id : "hiddenDanger.id",
                    name : "hiddenDanger.id",
                    xtype : "hidden",
                    value : this.id == null ? "": this.id
                },{
				layout : "column",
				//      border:false,
				bodyStyle : "padding:5px;",
				items : [
						{
							layout : "form",
							columnWidth : .5,
							border : false,
							//                        True表示为显示出面板body元素的边框，false则隐藏
							defaultType : "textfield",
							items : [ {
								fieldLabel : '整改人'
										+ '<font color=red>*</font>',
								id : "hiddenDanger.abarbeitungPerson",
								name : "hiddenDanger.abarbeitungPerson",
								maxLength : 80,
								width : 146,
								allowBlank : false,
								blankText : "整改人不能为空！"
							} ]
						},
						{
							layout : "form",
							columnWidth : .5,
							border : false,
                            bodyStyle:'padding:5px;',
                              items:[{
                                  xtype:'datefield',
                                  fieldLabel:'整改日期',
                                  id:'hiddenDanger.abarbeitungDate',
                                  name:'hiddenDanger.abarbeitungDate',
                                  format:'y-m-d',
                                  allowBlank : false,
                                  width:146
                              }]
						},
						{
						layout : "form",
						bodyStyle : "padding:5px;",
						columnWidth : 1.,
						items : [ {
							xtype : "textarea",
							fieldLabel : '整改措施',
							name : 'hiddenDanger.abarbeitungMeasure',
							/*maxLength:300,
							height:25,*/
							width : 448
						} ]
						},
						{
							layout : "form",
							bodyStyle : "padding:5px;",
							columnWidth : 1.,
							items : [ {
								xtype : "textarea",
								fieldLabel : '整改结论',
								name : 'hiddenDanger.abarbeitungConclusion',
								/*maxLength:300,
								height:25,*/
								width : 448
							} ]
							},
							{
								layout : "form",
								bodyStyle : "padding:5px;",
								columnWidth : 1.,
								items : [ {
									xtype : "textarea",
									fieldLabel : '备注',
									name : 'hiddenDanger.comment',
									/*maxLength:300,
									height:25,*/
									width : 448
								} ]
								}]
                }
				]
            },
            loadData:{
                getUrl:__ctxPath +"/safecheckplan/getHiddenDanger.do",
                preName : "hiddenDanger"
            },
            isShow : this.isShow
        });
    }
});
